package com.qk.management.mapper;

import com.qk.domain.CourseDO;
import com.qk.dto.CourseDTO;
import com.qk.entity.Course;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface CourseMapper {
     List<CourseDO> selectByPage(CourseDTO dto);


    void insert(Course course);

    @Delete("DELETE FROM course WHERE id=#{id}")
    void deleteCourse(Integer id);

    @Select("SELECT * FROM course WHERE id=#{id}")
    Course selectById(Integer id);

    void updateCourse(Course course);

}
